package com.cy2;

import java.io.*;

public class CopeJavaDemo3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("myCharStream\\ConversionStreamDemo.java"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("myCharStream\\Cope3.java"));
        char[] bys = new char[1024];
        int len;
        while((len=br.read(bys))!=-1){
            bw.write(bys,0,len);
        }

        br.close();
        bw.close();
    }
}
